<template>
    <div class="welcome_box">
        <!-- 中间图标部分 -->
        <div class="content">
            <div>
                <img src="../../assets/images/login/欢迎页图片.png" alt="欢迎页Log">
            </div>
            <h2>小默外卖</h2>
            <span class="center">-----<span class="text">商家中心</span>-----</span>
        </div>

        <!-- 底部按钮 -->
        <div class="btn_box">
            <van-button class="btn" @click="login">登录</van-button>
            <van-button class="btn bc" @click="setShop">我要开店</van-button>
        </div>
    </div>
</template>

<script>
export default {
    methods:{
        login(){
            this.$router.push('/ProtocolReading')
        },
        setShop(){
            this.$router.push('/CreateAccountNum')
        }
    }
}
</script>


<style scoped>
.welcome_box{
    width: 100%;
    height: 667px;
    /* margin: 0 auto; */
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: flex-end;
}
.content{
    width: 100%;
    text-align: center;
}
h2{
    font-weight: 400;
    margin: 10px 0;
}
.center{
    font-size: 20px;
    color: #000;
}
.center>.text{
    padding: 0 10px;
}
/* 底部按钮 */
.btn_box{
    margin-top: 150px;
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.btn{
    background-color: tomato;
    width: 60%;
    text-align: center;
    border-radius: 20px;
    height: 3em;
    color: #ffff;
    font-size: 17px;
}
.bc{
    border: 1px solid #c1c1c1;
    background-color: #ffffff;
    border-radius: 20px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #000;
}
</style>